﻿using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using SbsSW.SwiPlCs;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Adventure.Model
{
    internal class Wall
    {
        #region Constructors

        internal Wall(Rectangle bounds, Rectangle originalBounds, string name, Color color)
        {
            _name = name;
            _bounds = bounds;
            _originalBounds = originalBounds;
            _color = color;
        }

        #endregion

        #region Private Fields

        private string _name;
        private Rectangle _bounds;
        private Rectangle _originalBounds;
        private Texture2D _texture;
        private Color _color;

        #endregion

        #region Internal Methods
        internal void Initialize()
        {
            _texture = GraphicsResources.ContentManager.Load<Texture2D>(@"Textures\Rectangle");
        }

        internal void Draw(GameTime gameTime)
        {
            GraphicsResources.SpriteBatch.Begin();
            GraphicsResources.SpriteBatch.Draw(_texture, _bounds, _color);
            GraphicsResources.SpriteBatch.End();
        }

        #endregion
    }
}
